package com.unisyou.reg;

public class Demo1 {
    public static void main(String[] args) {
        String reg = "201\\d";
        String str = "201";
        for (int i = 0; i < 11; i++) {
            System.out.print(str+i);
            System.out.println((str+i).matches(reg));
        }
    }
}
